package net.flyinggroup.scs.gitter.service.gitter;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.net.URI;

@ConfigurationProperties(prefix = "gitter")
@Getter
@Setter
public class GitterProperties {
    private Auth auth = new Auth();
    private Room room = new Room();
    private GenericProperties api;
    private GenericProperties stream;

    @Getter
    @Setter
    public static class GenericProperties {
        private URI endpoint;
        private URI messagesResource;
        private String version = "v1";
    }

    @Setter
    @Getter
    public static class Auth {
        private String token;
    }

    @Setter
    @Getter
    public static class Room {
        private String id;
    }
}
